import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueParticles from 'vue-particles'
import http from '@/config/axios'
import zgHttp from '@/config/zghttp'
import {
  show_loading,
  hide_loading
} from './util/loading'

import store from '@/store'

import '@/assets/css/global.css'

Vue.use(ElementUI)
Vue.use(VueParticles)

Vue.prototype.$http = http
Vue.prototype.$zgHttp = zgHttp
Vue.prototype.$showLoading = show_loading
Vue.prototype.$hideLoading = hide_loading


Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
